From 4e7a96c5a831882463802cdd4f84fe1464969cb0 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Wed, 23 Mar 2022 12:29:43 +0100
Subject: refactor: use formatjs swc plugin

I'm not able to configure SWC plugins in Next.js so to make it works,
all translation must have an id.
---
 src/pages/blog/page/[id].tsx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'src/pages/blog/page/[id].tsx')

diff --git a/src/pages/blog/page/[id].tsx b/src/pages/blog/page/[id].tsx
index 2cbd486..6c4d2f8 100644
--- a/src/pages/blog/page/[id].tsx
+++ b/src/pages/blog/page/[id].tsx
@@ -44,8 +44,9 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({
 
   const pageTitle = intl.formatMessage(
     {
-      defaultMessage: `Blog - Page {number} - {websiteName}`,
+      defaultMessage: 'Blog - Page {number} - {websiteName}',
       description: 'BlogPage: SEO - Page title',
+      id: '8w+jnD',
     },
     { number: pageNumber, websiteName: settings.name }
   );
@@ -54,6 +55,7 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({
       defaultMessage:
         "Discover {websiteName}'s writings. He talks about web development, Linux and open source mostly.",
       description: 'BlogPage: SEO - Meta description',
+      id: '18h/t0',
     },
     { websiteName: settings.name }
   );
@@ -92,6 +94,7 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({
   const title = intl.formatMessage({
     defaultMessage: 'Blog',
     description: 'BlogPage: page title',
+    id: '7TbbIk',
   });
 
   return (
@@ -123,6 +126,7 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({
           title={intl.formatMessage({
             defaultMessage: 'Filter by:',
             description: 'BlogPage: sidebar title',
+            id: 'KERk7L',
           })}
         >
           <ThematicsList
@@ -130,6 +134,7 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({
             title={intl.formatMessage({
               defaultMessage: 'Thematics',
               description: 'BlogPage: thematics list widget title',
+              id: 'HriY57',
             })}
           />
           <TopicsList
@@ -137,6 +142,7 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({
             title={intl.formatMessage({
               defaultMessage: 'Topics',
               description: 'BlogPage: topics list widget title',
+              id: '2D9tB5',
             })}
           />
         </Sidebar>
@@ -154,6 +160,7 @@ export const getStaticProps: GetStaticProps = async (
   const breadcrumbTitle = intl.formatMessage({
     defaultMessage: 'Blog',
     description: 'BlogPage: breadcrumb item',
+    id: 'R0eDmw',
   });
   const { locale, params } = context;
   const queriedPageNumber = params ? Number(params.id) : 1;
-- 
cgit v1.2.3

